/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package group6renderer.renderernode;

import group6renderer.Display;
import group6renderer.Visitor;

/**
 *
 * @author jonnie
 */
public class UnderLineNode extends FormatNode
{

    public UnderLineNode()
    {
	name = "u";
    }

    @Override
    public void drawNode(Display disp)
    {
    	disp.getState().toggleState(this.getName());
    }

    @Override
    public boolean hasClosing()
    {
	return true;
    }

    @Override
    public TreeNode copy()
    {
	return new UnderLineNode();
    }


    @Override
    public void accept(Visitor theVisitor)
    {
	theVisitor.visit(this);
    }
}

